package com.springcloud.alibaba.consumer;

import com.springcloud.alibaba.myrule.MyRuleConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @Author:RenPu
 * @Date: 2020/6/30 10:47
 * @Version: 1.0
 * @description:
 */

@SpringBootApplication
@EnableDiscoveryClient//支持多种注册中心：例如zookeeper,consul,nacsocl
//@RibbonClient(value = "consul-payment-server",configuration = MyRuleConfig.class)
@EnableCircuitBreaker
public class ConsulConsumerMain9002 {

    public static void main(String[] args) {
        SpringApplication.run(ConsulConsumerMain9002.class,args);
    }
}
